#!/bin/bash
LOG_PATH=/var/log/npu/slog/debug
if [ -d "$LOG_PATH" ]; then
  echo "清理日志，路径：$LOG_PATH"
else
  LOG_PATH=~/ascend/log
  echo "清理日志，路径：$LOG_PATH"
fi
rm -rf $LOG_PATH*
cd AddCustom;./build.sh;./build_out/*.run
cd ../AclNNInvocation;bash run.sh
cd $LOG_PATH; grep -rn ERROR